<?php 
if(!empty($this->Item)):
	$config = new Zendvn_Controller_Config(array('module'=> 'admin', 'fileConfig'=>'service.ini'));
	$pictureConfig = $config->getConfig('service');
	
	$name = Zendvn_Filter_Filter::filterContent($this->Item['name'], 'filter');
	if(file_exists($pictureConfig['thumbDir1'] . '/' . $this->Item['picture']) &&  !empty($this->Item['picture'])){
		$flagPic = true;
		$pictureUrl 	= $pictureConfig['thumbUrl1'] . '/' . $this->Item['picture'];
		$pictureUrlOrginal = $pictureConfig['uploadUrl'] . '/' . $this->Item['picture'];
	}else{
		$flagPic = false;
	}
		
	$description = Zendvn_Filter_Filter::filterContent($this->Item['description'], 'filter');
	$content = Zendvn_Filter_Filter::filterContent($this->Item['content'], 'filter');
?>
<hgroup class="page-head">	                                                       		
	<h1><span><?php echo $name?></span></h1>
	<h5><?php echo $description?></h5>                                
</hgroup>
<div id="container">
	<div id="content" class="full-width"></div>
	<div class="official clearfix">
		<div id="content" class="doctor-page">
			<article id="post-42" class="post-42 doctor type-doctor status-publish hentry clearfix">
				<header style="text-align: center;">
					<h1 class="post-title detail-page" style="text-align: left;">
                      	<a href="#"><?php echo $name?></a>
					</h1>
					<?php if($flagPic):?>
					<div class="post-thumb">
						<a href="<?php echo $pictureUrlOrginal?>" title="<?php echo $name?>" class="pretty-photo">
							<img src="<?php echo $pictureUrlOrginal?>" alt="<?php echo $name?>">
						</a>
					</div>
					<?php endif;?>
                </header>
				<?php echo $content?>
			</article>
		</div>
		<?php echo $this->render('includes/right-section.php')?>
	</div>
</div>
<?php endif;?>